import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/home",
    name: "Home",
    component: Home
  },
  {
    path: "/",
    redirect:"/home"
  },
  {
    path: "/list",
    name: "list",
  
    component: () =>
      import( "../views/List.vue")
  },
  {
    path: "/car",
    name: "car",
  
    component: () =>
      import( "../views/Car.vue")
  },{
    path: "/mine",
    name: "mine",
  
    component: () =>
      import( "../views/Mine.vue")
  }
];

const router = new VueRouter({
  routes
});

export default router;
